package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 洪俊新
 * @date : 2021/3/9 14:16
 * @description:
 */
@ApiModel("书籍最详细信息")
public class HomepageAllBInfoRes {
    /**
     *主键
     * 书籍id
     * isnull 1
     */
    @ApiModelProperty(value="书籍id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String booksId;

    /**
     * 书籍简介
     * isnull 0
     */        @ApiModelProperty(value="书籍简介",position=4)
    private String bookInfo;


    /**
     * 书籍被收藏数
     * isnull 0
     */        @ApiModelProperty(value="书籍被收藏数",position=11)
    private Integer favoritesCount;
    /**
     * 评论数
     * isnull 0
     */        @ApiModelProperty(value="评论数",position=18)
    private Integer commentCount;

    public String getBooksId() {
        return booksId;
    }

    public void setBooksId(String booksId) {
        this.booksId = booksId;
    }

    public String getBookInfo() {
        return bookInfo;
    }

    public void setBookInfo(String bookInfo) {
        this.bookInfo = bookInfo;
    }

    public Integer getFavoritesCount() {
        return favoritesCount;
    }

    public void setFavoritesCount(Integer favoritesCount) {
        this.favoritesCount = favoritesCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    @Override
    public String toString() {
        return "HomepageAllBInfoRes{" +
                "booksId='" + booksId + '\'' +
                ", bookInfo='" + bookInfo + '\'' +
                ", favoritesCount=" + favoritesCount +
                ", commentCount=" + commentCount +
                '}';
    }
}
